package com.gistmap.sideline.repository;

import com.gistmap.sideline.entity.Role;
import com.gistmap.sideline.model.RoleName;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface RoleRepository extends JpaRepository<Role, Long> {

    Optional<Role> findByName(RoleName roleName);

}
